package com.ws.dao.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.orm.hibernate3.HibernateTemplate;
import org.springframework.stereotype.Component;

import com.ws.dao.UserDao;
import com.ws.entity.User;

@Component("userDaoImpl")
public class UserDaoImpl implements UserDao {
	
	private HibernateTemplate hibernateTemplate;

	@Resource
	public void setHibernateTemplate(HibernateTemplate hibernateTemplate) {
		this.hibernateTemplate = hibernateTemplate;
	}

	public void save() {
		// TODO Auto-generated method stub
	}

	public List<User> getObjectList() {
		return hibernateTemplate.find("from User");
	}

}
